home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / Lyapunov / lyap / Makefile < prev    next >
Encoding:
Makefile  |  1992-07-31  |  1.5 KB  |  56 lines

  1. #
  2. # Makefile for lyapunov
  3. #
  4. # Copyright 1991, Garrett A. Wollman.  This program may be
  5. # modified and distributed for any purpose and without fee,
  6. # provided that this notice is included verbatim on all such
  7. # copies.  Binary distributions without this source file are
  8. # prohibited.  All modified versions must be labeled prominently
  9. # with the name of the modifier and the date of modification.
  10. #
  11.  
  12. PROGRAM    =    lyap
  13. CFILES    =    lyap.c
  14.  
  15. #
  16. # for SGI, use cc -O3 -mp
  17. # for most others, probably use gcc -O2
  18. CC    =    cc -O -g
  19. CDEBUGFLAGS=
  20. CFLAGS    =    $(CDEBUGFLAGS)
  21.  
  22. # for Sun-4/4.1 with gcc
  23. #CC    =    gcc
  24. #CDEBUGFLAGS=    -O -fstrength-reduce -finline-functions -fcombine-regs
  25. #CFLAGS    =    $(CDEBUGFLAGS) -Wall -DSUN_BROKEN_STDLIB
  26.  
  27.  
  28. # on a NeXT want to use the libjv.a in the dir. above for better
  29. # floating point performance.
  30.  
  31. LFLAGS    =    -ljv
  32.  
  33. # change these as appropriate when doing a 'make benchmark'
  34. PROCESSORS=
  35. BENCHOUT=    /dev/null
  36. SENDMAIL=    /usr/lib/sendmail -oi -t
  37. MACHINE    =    HP 750
  38.  
  39. $(PROGRAM):    $(CFILES)
  40.     $(CC) $(CFLAGS) -o $(PROGRAM) $(CFILES) $(LFLAGS)
  41.  
  42. benchmark:    $(PROGRAM)
  43.     time $(PROGRAM) -r 1280 -c 1024 $(PROCESSORS) -o $(BENCHOUT) \
  44.          -5 3 4 3 4 bbbbbbaaaaaa 2>bench.timing
  45.     @echo "To: wollman@emily.uvm.edu, `logname`" >bench.hdr
  46.     @echo "Subject: lyapunov benchmark results" >>bench.hdr
  47.     @echo "" >>bench.hdr
  48.     @echo "On" $(PROCESSORS) "of `hostname` (a" $(MACHINE) "):" >>bench.hdr
  49.     cat bench.hdr bench.timing | $(SENDMAIL)
  50.     rm -f bench.hdr bench.timing
  51.  
  52. clean:
  53.     rm -f $(PROGRAM) bench.hdr bench.timing core *~ #*# *.BAK
  54.     rm -f *.CKP
  55.